<?php if($this->mode == 'signin'): ?>
<h2>Sign In</h2>

<p class="desc">Sign in using your credentials from our 
<a href="<?php PHPBB_URL ?>">user forum</a> to start translating. If
you have no account there you can easily <a href="<?php echo PHPBB_URL ?>/ucp.php?mode=register">create one</a>.
You have to apply for translation privileges after signing in if you have none.
</p>
<?php else: ?>
<h2>Become a Translator</h2>

<p class="desc">To become a translator please sign in using your
<a href="<?php PHPBB_URL ?>">forum</a> credentials first. If
you have no forum account yet you can easily
<a href="<?php echo PHPBB_URL ?>/ucp.php?mode=register">create one</a>.
After you signed in you are asked to apply for translation privileges.
</p>
<?php endif; ?>

<form method="post" action="<?php echo $this->url(array('controller' => 'user', 'action' => 'signin'), 'default', true) ?>">
	<?php if(count($this->errors) > 0): ?>
	<ul class="messages small" style="width: 90%;">
	<?php foreach($this->errors as $error): ?>
		<?php if($error == 'error_loginforum'): ?>
		<li class="red"><?php echo $this->translate($error, PHPBB_URL.'/ucp.php?mode=login') ?></li>
		<?php else: ?>
		<li class="red"><?php echo $this->translate($error) ?></li>
		<?php endif;?>
	<?php endforeach; ?>
	</ul>
	<?php endif; ?>

	<label for="username" style="margin-top: 0;">Username: </label>
	<input type="text" name="username" id="username" style="width: 80%" class="text" />
	<label for="password">Password: </label>
	<input type="password" name="password" id="password" style="width: 80%" class="text" />
	<br />&ensp; ( <a href="<?php echo PHPBB_URL ?>/ucp.php?mode=sendpassword">Forgot your password?</a> )
	
	<p>
		<input type="hidden" name="method" value="forum" />
		<input type="submit" value="Sign in" class="button" />
		&ensp; ( <a href="<?php echo PHPBB_URL ?>/ucp.php?mode=register">Create Account</a> )
	</p>
</form>